package com.xiaozhengkeji.cloud.mt.system.system.controller;

import com.xiaozhengkeji.cloud.mt.framework.common.utils.Result;
import com.xiaozhengkeji.cloud.mt.system.system.service.CoreConfigService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @author 小正
 * @date 2022年12月05日 12:53
 * @blog https://blog.xiaozhengkeji.com/
 * @mailbox 1419158026@qq.com 或 admin@xiaozhengkeji.com
 * @tips 看不懂的东西别动!
 * @Description 核心配置
 */
@RestController
@RequestMapping("CoreConfig")
@Tag(name = "核心配置")
@AllArgsConstructor
public class CoreConfigController {
    private final CoreConfigService coreConfigService;

    @GetMapping("info")
    public Result<HashMap<String, Object>> getInfo() {
        return Result.ok(coreConfigService.getCoreConfigInfo());
    }
}
